#ifndef UPDATEFILE_H
#define UPDATEFILE_H

#include <QObject>
#include <QTcpSocket>
#include <QUdpSocket>
#include <QStringList>
#include <QFile>
#include <QProcess>

class UpdateFile : public QObject
{
    Q_OBJECT
public:
    explicit UpdateFile(QObject *parent = 0);

    QUdpSocket* sock_serv;
    QTcpSocket* sock_recvFile;

    int filelen;
    int filenamelen;
    QString strFileName;
    int update;
 //   QStringList filepathList;
    QString strRecvDir;
    QFile* recvFile;

    QProcess* processShow;


protected:
    void closeShow();
    void openShow();
//    void deleteFils(QString path);
signals:

public slots:
    void recvBroadcast();
    void recvFiles();

};

#endif // UPDATEFILE_H
